package pers.zb.docker.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 应用启动入口
 */
@Controller
@SpringBootApplication
public class SpringbootMavenApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootMavenApplication.class, args);
	}


	/**
	 * 默认请求的方法
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/")
	String home(){
		return "<h1>Hello！你已经成功将应用部署到Docker容器并成功运行！</h1>";

		//return "<h1>恭喜你！Jenkins自动化部署测试成功！</h1>";
	}
}
